package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.StageProcessRetainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 备份阶段流程
 * @author mingliang.cao
 */
@Mapper
@Repository
public interface StageProcessRetainDao {
    Integer insert(StageProcessRetainEntity entity);

    void insertBatch(List<StageProcessRetainEntity> list);

    StageProcessRetainEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(StageProcessRetainEntity entity);

    List<StageProcessRetainEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}